package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.entity.WsdLeaveRecords;
import com.ruoyi.common.core.domain.entity.WsdLeaves;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 请假审批记录Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-16
 */
public interface WsdLeaveRecordsMapper extends BaseMapper<WsdLeaveRecords>
{
    /**
     * 查询请假审批记录
     * 
     * @param id 请假审批记录主键
     * @return 请假审批记录
     */
    public WsdLeaveRecords selectWsdLeaveRecordsById(Long id);

    /**
     * 查询请假审批记录列表
     * 
     * @param wsdLeaveRecords 请假审批记录
     * @return 请假审批记录集合
     */
    public List<WsdLeaveRecords> selectWsdLeaveRecordsList(WsdLeaveRecords wsdLeaveRecords);

    /**
     * 新增请假审批记录
     * 
     * @param wsdLeaveRecords 请假审批记录
     * @return 结果
     */
    public int insertWsdLeaveRecords(WsdLeaveRecords wsdLeaveRecords);

    /**
     * 修改请假审批记录
     * 
     * @param wsdLeaveRecords 请假审批记录
     * @return 结果
     */
    public int updateWsdLeaveRecords(WsdLeaveRecords wsdLeaveRecords);

    /**
     * 删除请假审批记录
     * 
     * @param id 请假审批记录主键
     * @return 结果
     */
    public int deleteWsdLeaveRecordsById(Long id);

    /**
     * 批量删除请假审批记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWsdLeaveRecordsByIds(Long[] ids);

    /**
     * 条件查询请假审批记录
     * @param wsdLeaveRecords
     * @return
     */
    List<WsdLeaveRecords> selectWsdLeaveRecordsLists(WsdLeaveRecords wsdLeaveRecords);

    WsdLeaveRecords selectWsdLeaveRecordsLeaveId(@Param("leaveId") Long leaveId);
}
